package com.zerui.manager.openplan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@Getter
@Setter
@ToString
@TableName(value = "tb_open_plan_implement",autoResultMap = true)
public class OpenPlanImplementDo {

	@ApiModelProperty("主键，无业务含义")
	@TableId(value="id",type= IdType.ASSIGN_ID)
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long id;

	@ApiModelProperty("开门计划id")
	private Long openPlanId;

	@ApiModelProperty("常开或者常闭时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
	private LocalDateTime operationTime;

	@ApiModelProperty("动作： 1，常开，0，常闭")
	private Integer operation;

	@ApiModelProperty("执行状态： 1，已执行，0，未执行")
	private Boolean implement = false;

	@ApiModelProperty("创建时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
	private LocalDateTime createTime;

}
